var assembleJson = function (code, message, data) {
    var object = {};
    object.code = code;
    object.message = message;
    if (data instanceof Array) {
        object.data = {
            list: data
        };
    } else {
        object.data = {
            object: data
        };
    }
    return object;
}

module.exports = {
    AssembleJson: assembleJson
}